#include "BD_EnumConvertor.h"

using namespace BnD;

Uint32 Convertor::ToSDLDeviceFlag(BD_Device_Flags flag)
{
	Uint32 result;
	switch(flag)
	{
	case en_audio:
		result = SDL_INIT_AUDIO;
		break;
	case en_cdrom:
		result = SDL_INIT_CDROM;
		break;
	case en_eventThread:
		result = SDL_INIT_EVENTTHREAD;
		break;
	case en_everyThing:
		result = SDL_INIT_EVERYTHING;
		break;
	case en_joystick:
		result = SDL_INIT_JOYSTICK;
		break;
	case en_timer:
		result = SDL_INIT_TIMER;
		break;
	case en_video:
		result = SDL_INIT_VIDEO;
		break;
	case en_noParachute:
		result = SDL_INIT_NOPARACHUTE;
		break;

	default:
		result = SDL_INIT_EVERYTHING;
		break;
	}
	return result;
}